package com.jiukuaidao.zhulin.module.commodity.contract;

import com.jiukuaidao.library.base.IBasePresenter;
import com.jiukuaidao.library.base.IBaseView;
import com.jiukuaidao.zhulin.entity.ApiGoosDetailInfo;
import com.jiukuaidao.zhulin.entity.EventShoppingCartInfo;

import java.util.List;

/**
 * Author : BinarySatan
 * Date : 2016/6/7
 * Description :
 */
public interface GoodsDetailContract {


    interface View extends IBaseView<Presenter> {
        String getGoodsId();

        String getGoodsNumber();

        /**
         * 获取商品详情数据成功
         */
        void getGoodsDetailDataSuc(ApiGoosDetailInfo result);


        List<EventShoppingCartInfo> getShoppingCartDataLocal();
    }

    interface Presenter extends IBasePresenter {
        /**
         * 加载商品详情数据
         */
        void loadGoodsDetailData();

        /**
         * 从购物车内查找当前商品 是否存在于购物车 没有反0, 有则反商品数量
         *
         * @return
         */
        String findGoods();
    }
}
